home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Snippets / QuickDraw / Imageer 1.0.0d3 / ImageerFAT.make < prev    next >
Encoding:
Text File  |  1996-02-27  |  3.6 KB  |  130 lines  |  [TEXT/MPS ]

  1. #-----------------------------------------------------------------------#
  2. #                                                                        #
  3. #    Program:    ImageerFAT                                                #
  4. #    File:        ImageerFAT.make    -    Make Source                            #
  5. #                                                                        #
  6. #    By:            Jason Hodges-Harris                                        #
  7. #                                                                        #
  8. #    Version:    1.0d2                                                    #
  9. #                                                                        #
  10. #    Copyright:    © 1995-96 Apple Computer, Inc.,                            #
  11. #                    all rights reserved.                                #    
  12. #                                                                        #
  13. #-----------------------------------------------------------------------#
  14.  
  15. AppName            =    'ImageerFAT'
  16. Signature        =    'Im#¢'
  17. projsrc            =    :source:
  18. PPCC            =    MrC
  19. C                =    SC
  20. obj                =    :object:
  21. COptions        =    {SymOptions} 
  22. SymOptions        =    -mc68020 -sym on 
  23. SymOptions2        =    -sym on -w
  24. Sym•PPC         =    -sym on
  25. Opts•PPC        =    
  26. ObjDir•PPC        =    :object:
  27. LinkOptions        =    {SymOptions2}
  28.  
  29. PPCCOptions        =    {Includes} {Sym•PPC} {Opts•PPC}
  30.  
  31. {obj}            ƒ    {projsrc}
  32.  
  33. {obj}.c.x        ƒ    {projsrc}.c
  34.     {MrC} {PPCCOptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.x
  35.  
  36. {obj}            ƒ    {projsrc}
  37. {obj}.c.o        ƒ    {projsrc}.c
  38.     {C}             {COptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
  39.  
  40.  
  41. #------------------------------------------------------------------------------
  42. # These are the objects that we want to link with. If any one of these
  43. # changes, then we invoke the Link command.
  44. #------------------------------------------------------------------------------
  45.  
  46. App68kObjects    =    ∂
  47.                     {obj}doevent.c.o ∂
  48.                     {obj}eventloop.c.o ∂
  49.                     {obj}fileCache.c.o ∂
  50.                     {obj}fileIO.c.o ∂
  51.                     {obj}gxGraphics.c.o ∂
  52.                     {obj}imageFilter.c.o ∂
  53.                     {obj}menu.c.o ∂
  54.                     {obj}offscrnGraphics.c.o ∂
  55.                     {obj}start.c.o ∂
  56.                     {obj}windows.c.o
  57.  
  58.                     
  59.                     
  60.  
  61. CSysObjects     =     ∂
  62.                     {Libraries}"IntEnv.o" ∂
  63.                     {CLibraries}"StdCLib.o" ∂
  64.                     {Libraries}"Interface.o" ∂
  65.                     {Libraries}"MacRuntime.o" ∂
  66.                     {Libraries}"ToolLibs.o"
  67.  
  68. AppPPCObjects        =    ∂
  69.                     {obj}doevent.c.x ∂
  70.                     {obj}eventloop.c.x ∂
  71.                     {obj}fileCache.c.x ∂
  72.                     {obj}fileIO.c.x ∂
  73.                     {obj}gxGraphics.c.x ∂
  74.                     {obj}imageFilter.c.x ∂
  75.                     {obj}menu.c.x ∂
  76.                     {obj}offscrnGraphics.c.x ∂
  77.                     {obj}start.c.x ∂
  78.                     {obj}windows.c.x
  79.  
  80. PPCSysObjects = ∂
  81.         "{SharedLibraries}"InterfaceLib ∂
  82.         "{SharedLibraries}"StdCLib ∂
  83.         "{SharedLibraries}MathLib" ∂
  84.         "{SharedLibraries}"QuickTimeLib ∂
  85.         "{PPCLibraries}"StdCRuntime.o ∂
  86.         "{PPCLibraries}"PPCCRuntime.o ∂
  87.         "{PPCLibraries}"PPCToolLibs.o ∂
  88.         "{PPCLibraries}"QuickDrawGXLib.xcoff ∂
  89.         -librename QuickDrawGXLib.xcoff=QuickDrawGXLib ∂
  90.         -weakLib QuickTimeLib ∂
  91.         -weakLib QuickDrawGXLib
  92.  
  93.  
  94. {AppName}        ƒƒ     ShellForce
  95.  
  96. ShellForce        ƒ
  97.     BEGIN
  98.         IF "{ShellVersion}" == ""
  99.             ( EVALUATE "`Version`" =~ /MPW Shell≈ ([0-9]+(.[ab0-9]+)+)®1≈/ ) ∑ Dev:Null
  100.             SET ShellVersion "{®1}"
  101.         END
  102.     END ∑ Dev:Null # Output to bit bucket so we don’t see above calculations
  103.  
  104. #------------------------------------------------------------------------------
  105. # Build rule that links our application together. If any of our objects 
  106. # changes, or this makefile changes, then we relink.  The dummy prerequisite
  107. # ShellForce must come before any other prerequisites for {AppName}
  108. #------------------------------------------------------------------------------
  109.  
  110. {AppName}        ƒƒ    {App68kObjects}
  111.     Rez -append {projsrc}Imageer.r -o {AppName}
  112.     Link {LinkOptions} -o {Targ} {App68kObjects} {CSysObjects}
  113.  
  114. {AppName}        ƒƒ    {AppPPCObjects}
  115.     PPCLink {Sym•PPC} -w ∂
  116.         -o {Targ} {AppPPCObjects} ∂
  117.         -t APPL ∂
  118.         -c {Signature} ∂
  119.         {PPCSysObjects}
  120.     SetFile {Targ} -t APPL -c {Signature} -a B
  121.  
  122. #------------------------------------------------------------------------------
  123. # Build rule that creates our resources and adds them to the application
  124. #------------------------------------------------------------------------------
  125.  
  126. {AppName}        ƒƒ    ImageerFAT.make ∂
  127.                     {projsrc}Imageer.app.h ∂
  128.                     {projsrc}Imageer.protos.h
  129.  
  130.